﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Text;
using System.Threading.Tasks;
using Mes.Pendant.MaterialManagementService.Dto;
using Volo.Abp.Application.Services;

namespace Mes.Pendant.MaterialManagementService.Services
{
    public interface IMaterialManagementServices:IApplicationService
    {
        /// <summary>
        /// 获取物料数据
        /// </summary>
        /// <param name="materialCode"></param>
        /// <param name="materialName"></param>
        /// <param name="index"></param>
        /// <param name="limit"></param>
        /// <returns></returns>
        Task<PagedResult> GetSearchMaterialManagements(string? ids,string? materialCode, string? materialName, int index = 1, int limit = 10);
        /// <summary>
        /// 添加物料产品
        /// </summary>
        /// <param name="materialmangement"></param>
        /// <returns></returns>
        Task<int> AddMaterialmanges(InsertMaterialMangementdto materialmangement);
        /// <summary>
        /// 删除物料产品
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteMaterialmanges(int id);
    }
}
